__scriptname__ = "HidabrootTV"
__author__ = '"ShalomChaver-YG'
__url__ = ""
__svn_url__ = "http://koshertv.googlecode.com/svn/trunk/scripts/HidabrootTv"
__date__ = '10/5/2010'
__version__ = "0.0.2"

import xbmc, xbmcgui, xbmcplugin, urllib2, urllib#, re, string, sys, os, traceback, time, pickle

HEADER = 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.1) Gecko/20090715 Firefox/3.5.1'

def load():
	url = "http://koshertv.shalomchaver.com/Channel/Get/1?streamId=1"
	req = urllib2.Request(url)
	req.add_header('User-Agent', HEADER)
	response = urllib2.urlopen(req)
	link=response.read()
	response.close()
	playVideo(link, "HidabrootTV")

def playVideo(url, name):
	xbmc.Player(xbmc.PLAYER_CORE_DVDPLAYER).play(url)	
	xbmc.sleep(200)

load()